﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YetAnotherChat.ChatCore.Models;
using YetAnotherChat.UserManagement.Models;

namespace YetAnotherChat.EntityFrameworkDataAccess
{
    public class YetAnotherChatDbContext: DbContext
    {
        public YetAnotherChatDbContext()
            : base("YetAnotherChatConnection")//connection string name
        { 
        
        }

        public virtual DbSet<ChatUser> ChatUsers { get; set; }

        public virtual DbSet<BackendUser> BackendUsers { get; set; }

        public virtual DbSet<Role> Roles { get; set; }

        public virtual DbSet<ChatMessage> Message { get; set; }
    }
}
